<?php
include "connect.php";
include "messa.php";
//接收id
$id=$_GET['id'];
//删除语句
$sql="delete from messa where id = ".$id;
//执行语句
$resu=mysqli_query($link,$sql);
if($resu){
    echo "删除数据成功";
}else{
    echo "删除数据失败，失败原因：".mysqli_error($link);
}